package com.atguigu.gmall.cart.api;

import com.atguigu.gmall.cart.pojo.Cart;
import com.atguigu.gmall.common.bean.ResponseVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/** 购物车模块对外接口
 * @author Jia Fa
 * @create 2021-12-21 1:40
 */
public interface GmallCartApi {

    @GetMapping("user/{userId}")
    @ApiOperation("根据userId 查询用户选中的购物车集合信息")
    @ResponseBody  // 注意不是返回页面了 远程调用返回VO集合对象
    public ResponseVo<List<Cart>> queryCheckCartByUserId(@PathVariable("userId")Long userId);
}
